package com.mbmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.mbmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author cyt
 * @email cyt123@gmail.com
 * @date 2023-02-09 12:33:30
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();
   //void?
    void removeMenusbyIds(List<Long> asList);

    //找到categoryid完整路径[父\子\孙]
    Long[] findCategoryPath(Long categoryId);

    void updateCascade(CategoryEntity category);
}

